<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="不动产编码" prop="emCode">
        <el-input v-model="queryParams.emCode" placeholder="请输入不动产编码" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="不动产名称" prop="emName">
        <el-input v-model="queryParams.emName" placeholder="请输入不动产名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="所属子公司" prop="emCompany">
        <el-input v-model="queryParams.emCompany" placeholder="请输入所属子公司" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="具体地址" prop="emLocation">
        <el-input v-model="queryParams.emLocation" placeholder="请输入具体地址" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="面积" prop="emArea">
        <el-input v-model="queryParams.emArea" placeholder="请输入面积" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="不动产所有权状况" prop="emOwnershipS">
        <el-input v-model="queryParams.emOwnershipS" placeholder="请输入不动产所有权状况" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="所有权单位名称" prop="emOwnershipName">
        <el-input v-model="queryParams.emOwnershipName" placeholder="请输入所有权单位名称" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="混合产权情况" prop="emOwnershipMix">
        <el-input v-model="queryParams.emOwnershipMix" placeholder="请输入混合产权情况" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="是否抵押担保" prop="emMortgageY">
        <el-input v-model="queryParams.emMortgageY" placeholder="请输入是否抵押担保" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="抵押担保对象" prop="emMortgageName">
        <el-input v-model="queryParams.emMortgageName" placeholder="请输入抵押担保对象" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="不动产权证号" prop="emCertificateN">
        <el-input v-model="queryParams.emCertificateN" placeholder="请输入不动产权证号" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="房产证号" prop="emCertificateF">
        <el-input v-model="queryParams.emCertificateF" placeholder="请输入房产证号" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="土地证号" prop="emCertificateT">
        <el-input v-model="queryParams.emCertificateT" placeholder="请输入土地证号" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="土地性质" prop="emLandnature">
        <el-input v-model="queryParams.emLandnature" placeholder="请输入土地性质" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="接收时间" prop="emHoldingtime">
        <el-date-picker clearable v-model="queryParams.emHoldingtime" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择接收时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="接收方式" prop="emHoldingway">
        <el-input v-model="queryParams.emHoldingway" placeholder="请输入接收方式" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="套数" prop="emTao">
        <el-input v-model="queryParams.emTao" placeholder="请输入套数" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="是否入账" prop="emFinAccount">
        <el-input v-model="queryParams.emFinAccount" placeholder="请输入是否入账" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="账面价值" prop="emFinBook">
        <el-input v-model="queryParams.emFinBook" placeholder="请输入账面价值" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="原始账面价值" prop="emFinObook">
        <el-input v-model="queryParams.emFinObook" placeholder="请输入原始账面价值" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="是否开展资产评估" prop="emEval">
        <el-input v-model="queryParams.emEval" placeholder="请输入是否开展资产评估" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="现评估价格" prop="emEvalPrice">
        <el-input v-model="queryParams.emEvalPrice" placeholder="请输入现评估价格" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="评估时间" prop="emEvalTime">
        <el-date-picker clearable v-model="queryParams.emEvalTime" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择评估时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="评估机构" prop="emEvalAgency">
        <el-input v-model="queryParams.emEvalAgency" placeholder="请输入评估机构" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产录入表修改人员" prop="emInPaper">
        <el-input v-model="queryParams.emInPaper" placeholder="请输入资产录入表修改人员" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产录入表补充1" prop="emInBc1">
        <el-input v-model="queryParams.emInBc1" placeholder="请输入资产录入表补充1" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产录入表补充2" prop="emInBc2">
        <el-input v-model="queryParams.emInBc2" placeholder="请输入资产录入表补充2" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产录入表补充3" prop="emInBc3">
        <el-input v-model="queryParams.emInBc3" placeholder="请输入资产录入表补充3" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产录入表备注" prop="emInLabel">
        <el-input v-model="queryParams.emInLabel" placeholder="请输入资产录入表备注" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="资产录入表附件地址" prop="emInFlocation">
        <el-input v-model="queryParams.emInFlocation" placeholder="请输入资产录入表附件地址" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="闲置时长" prop="emMonthIdle">
        <el-input v-model="queryParams.emMonthIdle" placeholder="请输入闲置时长" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="闲置原因" prop="emMonthIdleR">
        <el-input v-model="queryParams.emMonthIdleR" placeholder="请输入闲置原因" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="使用时长" prop="emMonthUse">
        <el-input v-model="queryParams.emMonthUse" placeholder="请输入使用时长" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="使用情况" prop="emOwnWay">
        <el-input v-model="queryParams.emOwnWay" placeholder="请输入使用情况" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租方式" prop="emMerchantsWay">
        <el-input v-model="queryParams.emMerchantsWay" placeholder="请输入招租方式" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租平台" prop="emMerchantsPlm">
        <el-input v-model="queryParams.emMerchantsPlm" placeholder="请输入招租平台" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租单价确定" prop="emMerchantsUnitw">
        <el-input v-model="queryParams.emMerchantsUnitw" placeholder="请输入招租单价确定" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租底价" prop="emMerchantsDj">
        <el-input v-model="queryParams.emMerchantsDj" placeholder="请输入招租底价" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租审批表修改人员" prop="emMeexcelPaper">
        <el-input v-model="queryParams.emMeexcelPaper" placeholder="请输入招租审批表修改人员" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租审批表补充1" prop="emMeexcelBc1">
        <el-input v-model="queryParams.emMeexcelBc1" placeholder="请输入招租审批表补充1" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租审批表补充2" prop="emMeexcelBc2">
        <el-input v-model="queryParams.emMeexcelBc2" placeholder="请输入招租审批表补充2" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租审批表补充3" prop="emMeexcelBc3">
        <el-input v-model="queryParams.emMeexcelBc3" placeholder="请输入招租审批表补充3" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租审批表备注" prop="emMeexcelLabel">
        <el-input v-model="queryParams.emMeexcelLabel" placeholder="请输入招租审批表备注" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租审批表附件地址" prop="emMeexcelFlocation">
        <el-input v-model="queryParams.emMeexcelFlocation" placeholder="请输入招租审批表附件地址" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招租时竞价户数" prop="emMerchantsNumb">
        <el-input v-model="queryParams.emMerchantsNumb" placeholder="请输入招租时竞价户数" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同编码" prop="emAgreementNo">
        <el-input v-model="queryParams.emAgreementNo" placeholder="请输入合同编码" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同金额" prop="emAgreementPrice">
        <el-input v-model="queryParams.emAgreementPrice" placeholder="请输入合同金额" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="单价" prop="emMerchantsUnitp">
        <el-input v-model="queryParams.emMerchantsUnitp" placeholder="请输入单价" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="年租金" prop="emMerchantsTotal">
        <el-input v-model="queryParams.emMerchantsTotal" placeholder="请输入年租金" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="中标人名称" prop="emMerchantsObject">
        <el-input v-model="queryParams.emMerchantsObject" placeholder="请输入中标人名称" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="实际承租人名称" prop="emMerchantsReal">
        <el-input v-model="queryParams.emMerchantsReal" placeholder="请输入实际承租人名称" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="是否原租户承租" prop="emMerchantsYn">
        <el-input v-model="queryParams.emMerchantsYn" placeholder="请输入是否原租户承租" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="历史租户" prop="emMerchantsHistory">
        <el-input v-model="queryParams.emMerchantsHistory" placeholder="请输入历史租户" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="出租时长" prop="emMerchantsYears">
        <el-input v-model="queryParams.emMerchantsYears" placeholder="请输入出租时长" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="出租合同开始时间" prop="emMerchantsBegin">
        <el-date-picker clearable v-model="queryParams.emMerchantsBegin" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择出租合同开始时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="出租合同截止时间" prop="emMerchantsEnd">
        <el-date-picker clearable v-model="queryParams.emMerchantsEnd" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择出租合同截止时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="租金收取方式" prop="emMerchantsCollectionway">
        <el-input v-model="queryParams.emMerchantsCollectionway" placeholder="请输入租金收取方式" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金收取途径" prop="emMerchantsPayway">
        <el-input v-model="queryParams.emMerchantsPayway" placeholder="请输入租金收取途径" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="押金金额" prop="emDepossit">
        <el-input v-model="queryParams.emDepossit" placeholder="请输入押金金额" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同管理表表修改人员" prop="emAgexcelPaper">
        <el-input v-model="queryParams.emAgexcelPaper" placeholder="请输入合同管理表表修改人员" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同管理表补充1" prop="emAgexcelBc1">
        <el-input v-model="queryParams.emAgexcelBc1" placeholder="请输入合同管理表补充1" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同管理表补充2" prop="emAgexcelBc2">
        <el-input v-model="queryParams.emAgexcelBc2" placeholder="请输入合同管理表补充2" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同管理表补充3" prop="emAgexcelBc3">
        <el-input v-model="queryParams.emAgexcelBc3" placeholder="请输入合同管理表补充3" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同管理表备注" prop="emAgexcelLabel">
        <el-input v-model="queryParams.emAgexcelLabel" placeholder="请输入合同管理表备注" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="合同管理表附件地址" prop="emAgexcelFlocation">
        <el-input v-model="queryParams.emAgexcelFlocation" placeholder="请输入合同管理表附件地址" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="欠租金额" prop="emOweTotal">
        <el-input v-model="queryParams.emOweTotal" placeholder="请输入欠租金额" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="违约金计算方式" prop="emLiquWay">
        <el-input v-model="queryParams.emLiquWay" placeholder="请输入违约金计算方式" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="本年度应收租金" prop="emRentAble">
        <el-input v-model="queryParams.emRentAble" placeholder="请输入本年度应收租金" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="本年度实收租金" prop="emRentPaid">
        <el-input v-model="queryParams.emRentPaid" placeholder="请输入本年度实收租金" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="逾期开始时间" prop="emLateStart">
        <el-date-picker clearable v-model="queryParams.emLateStart" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择逾期开始时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="累计逾期天数" prop="emLateAllday">
        <el-input v-model="queryParams.emLateAllday" placeholder="请输入累计逾期天数" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="累计逾期金额" prop="emLateMoney">
        <el-input v-model="queryParams.emLateMoney" placeholder="请输入累计逾期金额" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="累计违约金金额" prop="emLateForpay">
        <el-input v-model="queryParams.emLateForpay" placeholder="请输入累计违约金金额" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="最长欠租时间" prop="emOweLong">
        <el-input v-model="queryParams.emOweLong" placeholder="请输入最长欠租时间" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金管理表修改人员" prop="emRenexcelPaper">
        <el-input v-model="queryParams.emRenexcelPaper" placeholder="请输入租金管理表修改人员" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金管理表补充1" prop="emRenexcelBc1">
        <el-input v-model="queryParams.emRenexcelBc1" placeholder="请输入租金管理表补充1" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金管理表补充2" prop="emRenexcelBc2">
        <el-input v-model="queryParams.emRenexcelBc2" placeholder="请输入租金管理表补充2" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金管理表补充3" prop="emRenexcelBc3">
        <el-input v-model="queryParams.emRenexcelBc3" placeholder="请输入租金管理表补充3" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金管理表备注" prop="emRenexcelLabel">
        <el-input v-model="queryParams.emRenexcelLabel" placeholder="请输入租金管理表备注" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="租金管理表附件地址" prop="emRenexcelFlocation">
        <el-input v-model="queryParams.emRenexcelFlocation" placeholder="请输入租金管理表附件地址" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
          v-hasPermi="['system:properties:add']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
          v-hasPermi="['system:properties:edit']">修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
          v-hasPermi="['system:properties:remove']">删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
          v-hasPermi="['system:properties:export']">导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="propertiesList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="不动产id" align="center" prop="emId" v-if="true" />
      <el-table-column label="不动产编码" align="center" prop="emCode" />
      <el-table-column label="不动产名称" align="center" prop="emName" />
      <el-table-column label="不动产类型" align="center" prop="emType">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_type" :value="scope.row.emType" />
        </template>
      </el-table-column>
      <el-table-column label="不动产状态" align="center" prop="emStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_status" :value="scope.row.emStatus" />
        </template>
      </el-table-column>
      <el-table-column label="所属子公司" align="center" prop="emCompany" />
      <el-table-column label="具体地址" align="center" prop="emLocation" />
      <el-table-column label="面积" align="center" prop="emArea" />
      <el-table-column label="不动产所有权状况" align="center" prop="emOwnershipS">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_ownership" :value="scope.row.emOwnershipS" />
        </template>
      </el-table-column>
      <el-table-column label="所有权单位名称" align="center" prop="emOwnershipName" />
      <el-table-column label="混合产权情况" align="center" prop="emOwnershipMix" />
      <el-table-column label="是否抵押担保" align="center" prop="emMortgageY">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_mortage" :value="scope.row.emMortgageY" />
        </template>
      </el-table-column>
      <el-table-column label="抵押担保对象" align="center" prop="emMortgageName" />
      <el-table-column label="不动产权证号" align="center" prop="emCertificateN" />
      <el-table-column label="房产证号" align="center" prop="emCertificateF" />
      <el-table-column label="土地证号" align="center" prop="emCertificateT" />
      <el-table-column label="土地性质" align="center" prop="emLandnature">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_landnature" :value="scope.row.emLandnature" />
        </template>
      </el-table-column>
      <el-table-column label="接收时间" align="center" prop="emHoldingtime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.emHoldingtime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="接收方式" align="center" prop="emHoldingway">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_holdingway" :value="scope.row.emHoldingway" />
        </template>
      </el-table-column>
      <el-table-column label="套数" align="center" prop="emTao" />
      <el-table-column label="是否入账" align="center" prop="emFinAccount">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_fin_account" :value="scope.row.emFinAccount" />
        </template>
      </el-table-column>
      <el-table-column label="账面价值" align="center" prop="emFinBook" />
      <el-table-column label="原始账面价值" align="center" prop="emFinObook" />
      <el-table-column label="是否开展资产评估" align="center" prop="emEval">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_eval" :value="scope.row.emEval" />
        </template>
      </el-table-column>
      <el-table-column label="现评估价格" align="center" prop="emEvalPrice" />
      <el-table-column label="评估时间" align="center" prop="emEvalTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.emEvalTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="评估机构" align="center" prop="emEvalAgency" />
      <el-table-column label="资产录入表修改人员" align="center" prop="emInPaper" />
      <el-table-column label="资产录入表补充1" align="center" prop="emInBc1" />
      <el-table-column label="资产录入表补充2" align="center" prop="emInBc2" />
      <el-table-column label="资产录入表补充3" align="center" prop="emInBc3" />
      <el-table-column label="资产录入表备注" align="center" prop="emInLabel" />
      <el-table-column label="资产录入表附件地址" align="center" prop="emInFlocation" />
      <el-table-column label="闲置时长" align="center" prop="emMonthIdle" />
      <el-table-column label="闲置原因" align="center" prop="emMonthIdleR" />
      <el-table-column label="使用时长" align="center" prop="emMonthUse" />
      <el-table-column label="使用情况" align="center" prop="emOwnWay" />
      <el-table-column label="招租方式" align="center" prop="emMerchantsWay">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_merchants" :value="scope.row.emMerchantsWay" />
        </template>
      </el-table-column>
      <el-table-column label="招租平台" align="center" prop="emMerchantsPlm" />
      <el-table-column label="招租单价确定" align="center" prop="emMerchantsUnitw">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_merchants_unitw" :value="scope.row.emMerchantsUnitw" />
        </template>
      </el-table-column>
      <el-table-column label="招租底价" align="center" prop="emMerchantsDj" />
      <el-table-column label="招租审批表修改人员" align="center" prop="emMeexcelPaper" />
      <el-table-column label="招租审批表补充1" align="center" prop="emMeexcelBc1" />
      <el-table-column label="招租审批表补充2" align="center" prop="emMeexcelBc2" />
      <el-table-column label="招租审批表补充3" align="center" prop="emMeexcelBc3" />
      <el-table-column label="招租审批表备注" align="center" prop="emMeexcelLabel" />
      <el-table-column label="招租审批表附件地址" align="center" prop="emMeexcelFlocation" />
      <el-table-column label="招租时竞价户数" align="center" prop="emMerchantsNumb" />
      <el-table-column label="合同编码" align="center" prop="emAgreementNo" />
      <el-table-column label="合同金额" align="center" prop="emAgreementPrice" />
      <el-table-column label="单价" align="center" prop="emMerchantsUnitp" />
      <el-table-column label="年租金" align="center" prop="emMerchantsTotal" />
      <el-table-column label="中标人名称" align="center" prop="emMerchantsObject" />
      <el-table-column label="实际承租人名称" align="center" prop="emMerchantsReal" />
      <el-table-column label="是否原租户承租" align="center" prop="emMerchantsYn">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_merchants_yn" :value="scope.row.emMerchantsYn" />
        </template>
      </el-table-column>
      <el-table-column label="历史租户" align="center" prop="emMerchantsHistory" />
      <el-table-column label="出租时长" align="center" prop="emMerchantsYears" />
      <el-table-column label="出租合同开始时间" align="center" prop="emMerchantsBegin" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.emMerchantsBegin, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="出租合同截止时间" align="center" prop="emMerchantsEnd" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.emMerchantsEnd, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="租金收取方式" align="center" prop="emMerchantsCollectionway">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_merchants_way" :value="scope.row.emMerchantsCollectionway" />
        </template>
      </el-table-column>
      <el-table-column label="租金收取途径" align="center" prop="emMerchantsPayway">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.iem_payway" :value="scope.row.emMerchantsPayway" />
        </template>
      </el-table-column>
      <el-table-column label="押金金额" align="center" prop="emDepossit" />
      <el-table-column label="合同管理表表修改人员" align="center" prop="emAgexcelPaper" />
      <el-table-column label="合同管理表补充1" align="center" prop="emAgexcelBc1" />
      <el-table-column label="合同管理表补充2" align="center" prop="emAgexcelBc2" />
      <el-table-column label="合同管理表补充3" align="center" prop="emAgexcelBc3" />
      <el-table-column label="合同管理表备注" align="center" prop="emAgexcelLabel" />
      <el-table-column label="合同管理表附件地址" align="center" prop="emAgexcelFlocation" />
      <el-table-column label="欠租金额" align="center" prop="emOweTotal" />
      <el-table-column label="违约金计算方式" align="center" prop="emLiquWay" />
      <el-table-column label="本年度应收租金" align="center" prop="emRentAble" />
      <el-table-column label="本年度实收租金" align="center" prop="emRentPaid" />
      <el-table-column label="逾期开始时间" align="center" prop="emLateStart" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.emLateStart, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="累计逾期天数" align="center" prop="emLateAllday" />
      <el-table-column label="累计逾期金额" align="center" prop="emLateMoney" />
      <el-table-column label="累计违约金金额" align="center" prop="emLateForpay" />
      <el-table-column label="最长欠租时间" align="center" prop="emOweLong" />
      <el-table-column label="租金管理表修改人员" align="center" prop="emRenexcelPaper" />
      <el-table-column label="租金管理表补充1" align="center" prop="emRenexcelBc1" />
      <el-table-column label="租金管理表补充2" align="center" prop="emRenexcelBc2" />
      <el-table-column label="租金管理表补充3" align="center" prop="emRenexcelBc3" />
      <el-table-column label="租金管理表备注" align="center" prop="emRenexcelLabel" />
      <el-table-column label="租金管理表附件地址" align="center" prop="emRenexcelFlocation" />
      <!-- <el-table-column label="表单类型 1=资产录入 2=招标审批 3=合同管理 4=租金管理" align="center" prop="formDataType" /> -->
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
            v-hasPermi="['system:properties:edit']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
            v-hasPermi="['system:properties:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
      @pagination="getList" />

    <!-- 添加或修改不动产参数对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="不动产编码" prop="emCode">
          <el-input v-model="form.emCode" placeholder="请输入不动产编码" />
        </el-form-item>
        <el-form-item label="不动产名称" prop="emName">
          <el-input v-model="form.emName" placeholder="请输入不动产名称" />
        </el-form-item>
        <el-form-item label="所属子公司" prop="emCompany">
          <el-input v-model="form.emCompany" placeholder="请输入所属子公司" />
        </el-form-item>
        <el-form-item label="具体地址" prop="emLocation">
          <el-input v-model="form.emLocation" placeholder="请输入具体地址" />
        </el-form-item>
        <el-form-item label="面积" prop="emArea">
          <el-input v-model="form.emArea" placeholder="请输入面积" />
        </el-form-item>
        <el-form-item label="不动产所有权状况" prop="emOwnershipS">
          <el-input v-model="form.emOwnershipS" placeholder="请输入不动产所有权状况" />
        </el-form-item>
        <el-form-item label="所有权单位名称" prop="emOwnershipName">
          <el-input v-model="form.emOwnershipName" placeholder="请输入所有权单位名称" />
        </el-form-item>
        <el-form-item label="混合产权情况" prop="emOwnershipMix">
          <el-input v-model="form.emOwnershipMix" placeholder="请输入混合产权情况" />
        </el-form-item>
        <el-form-item label="是否抵押担保" prop="emMortgageY">
          <el-input v-model="form.emMortgageY" placeholder="请输入是否抵押担保" />
        </el-form-item>
        <el-form-item label="抵押担保对象" prop="emMortgageName">
          <el-input v-model="form.emMortgageName" placeholder="请输入抵押担保对象" />
        </el-form-item>
        <el-form-item label="不动产权证号" prop="emCertificateN">
          <el-input v-model="form.emCertificateN" placeholder="请输入不动产权证号" />
        </el-form-item>
        <el-form-item label="房产证号" prop="emCertificateF">
          <el-input v-model="form.emCertificateF" placeholder="请输入房产证号" />
        </el-form-item>
        <el-form-item label="土地证号" prop="emCertificateT">
          <el-input v-model="form.emCertificateT" placeholder="请输入土地证号" />
        </el-form-item>
        <el-form-item label="土地性质" prop="emLandnature">
          <el-input v-model="form.emLandnature" placeholder="请输入土地性质" />
        </el-form-item>
        <el-form-item label="接收时间" prop="emHoldingtime">
          <el-date-picker clearable v-model="form.emHoldingtime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择接收时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="接收方式" prop="emHoldingway">
          <el-input v-model="form.emHoldingway" placeholder="请输入接收方式" />
        </el-form-item>
        <el-form-item label="套数" prop="emTao">
          <el-input v-model="form.emTao" placeholder="请输入套数" />
        </el-form-item>
        <el-form-item label="是否入账" prop="emFinAccount">
          <el-input v-model="form.emFinAccount" placeholder="请输入是否入账" />
        </el-form-item>
        <el-form-item label="账面价值" prop="emFinBook">
          <el-input v-model="form.emFinBook" placeholder="请输入账面价值" />
        </el-form-item>
        <el-form-item label="原始账面价值" prop="emFinObook">
          <el-input v-model="form.emFinObook" placeholder="请输入原始账面价值" />
        </el-form-item>
        <el-form-item label="是否开展资产评估" prop="emEval">
          <el-input v-model="form.emEval" placeholder="请输入是否开展资产评估" />
        </el-form-item>
        <el-form-item label="现评估价格" prop="emEvalPrice">
          <el-input v-model="form.emEvalPrice" placeholder="请输入现评估价格" />
        </el-form-item>
        <el-form-item label="评估时间" prop="emEvalTime">
          <el-date-picker clearable v-model="form.emEvalTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择评估时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="评估机构" prop="emEvalAgency">
          <el-input v-model="form.emEvalAgency" placeholder="请输入评估机构" />
        </el-form-item>
        <el-form-item label="资产录入表修改人员" prop="emInPaper">
          <el-input v-model="form.emInPaper" placeholder="请输入资产录入表修改人员" />
        </el-form-item>
        <el-form-item label="资产录入表补充1" prop="emInBc1">
          <el-input v-model="form.emInBc1" placeholder="请输入资产录入表补充1" />
        </el-form-item>
        <el-form-item label="资产录入表补充2" prop="emInBc2">
          <el-input v-model="form.emInBc2" placeholder="请输入资产录入表补充2" />
        </el-form-item>
        <el-form-item label="资产录入表补充3" prop="emInBc3">
          <el-input v-model="form.emInBc3" placeholder="请输入资产录入表补充3" />
        </el-form-item>
        <el-form-item label="资产录入表备注" prop="emInLabel">
          <el-input v-model="form.emInLabel" placeholder="请输入资产录入表备注" />
        </el-form-item>
        <el-form-item label="资产录入表附件地址" prop="emInFlocation">
          <el-input v-model="form.emInFlocation" placeholder="请输入资产录入表附件地址" />
        </el-form-item>
        <el-form-item label="闲置时长" prop="emMonthIdle">
          <el-input v-model="form.emMonthIdle" placeholder="请输入闲置时长" />
        </el-form-item>
        <el-form-item label="闲置原因" prop="emMonthIdleR">
          <el-input v-model="form.emMonthIdleR" placeholder="请输入闲置原因" />
        </el-form-item>
        <el-form-item label="使用时长" prop="emMonthUse">
          <el-input v-model="form.emMonthUse" placeholder="请输入使用时长" />
        </el-form-item>
        <el-form-item label="使用情况" prop="emOwnWay">
          <el-input v-model="form.emOwnWay" placeholder="请输入使用情况" />
        </el-form-item>
        <el-form-item label="招租方式" prop="emMerchantsWay">
          <el-input v-model="form.emMerchantsWay" placeholder="请输入招租方式" />
        </el-form-item>
        <el-form-item label="招租平台" prop="emMerchantsPlm">
          <el-input v-model="form.emMerchantsPlm" placeholder="请输入招租平台" />
        </el-form-item>
        <el-form-item label="招租单价确定" prop="emMerchantsUnitw">
          <el-input v-model="form.emMerchantsUnitw" placeholder="请输入招租单价确定" />
        </el-form-item>
        <el-form-item label="招租底价" prop="emMerchantsDj">
          <el-input v-model="form.emMerchantsDj" placeholder="请输入招租底价" />
        </el-form-item>
        <el-form-item label="招租审批表修改人员" prop="emMeexcelPaper">
          <el-input v-model="form.emMeexcelPaper" placeholder="请输入招租审批表修改人员" />
        </el-form-item>
        <el-form-item label="招租审批表补充1" prop="emMeexcelBc1">
          <el-input v-model="form.emMeexcelBc1" placeholder="请输入招租审批表补充1" />
        </el-form-item>
        <el-form-item label="招租审批表补充2" prop="emMeexcelBc2">
          <el-input v-model="form.emMeexcelBc2" placeholder="请输入招租审批表补充2" />
        </el-form-item>
        <el-form-item label="招租审批表补充3" prop="emMeexcelBc3">
          <el-input v-model="form.emMeexcelBc3" placeholder="请输入招租审批表补充3" />
        </el-form-item>
        <el-form-item label="招租审批表备注" prop="emMeexcelLabel">
          <el-input v-model="form.emMeexcelLabel" placeholder="请输入招租审批表备注" />
        </el-form-item>
        <el-form-item label="招租审批表附件地址" prop="emMeexcelFlocation">
          <el-input v-model="form.emMeexcelFlocation" placeholder="请输入招租审批表附件地址" />
        </el-form-item>
        <el-form-item label="招租时竞价户数" prop="emMerchantsNumb">
          <el-input v-model="form.emMerchantsNumb" placeholder="请输入招租时竞价户数" />
        </el-form-item>
        <el-form-item label="合同编码" prop="emAgreementNo">
          <el-input v-model="form.emAgreementNo" placeholder="请输入合同编码" />
        </el-form-item>
        <el-form-item label="合同金额" prop="emAgreementPrice">
          <el-input v-model="form.emAgreementPrice" placeholder="请输入合同金额" />
        </el-form-item>
        <el-form-item label="单价" prop="emMerchantsUnitp">
          <el-input v-model="form.emMerchantsUnitp" placeholder="请输入单价" />
        </el-form-item>
        <el-form-item label="年租金" prop="emMerchantsTotal">
          <el-input v-model="form.emMerchantsTotal" placeholder="请输入年租金" />
        </el-form-item>
        <el-form-item label="中标人名称" prop="emMerchantsObject">
          <el-input v-model="form.emMerchantsObject" placeholder="请输入中标人名称" />
        </el-form-item>
        <el-form-item label="实际承租人名称" prop="emMerchantsReal">
          <el-input v-model="form.emMerchantsReal" placeholder="请输入实际承租人名称" />
        </el-form-item>
        <el-form-item label="是否原租户承租" prop="emMerchantsYn">
          <el-input v-model="form.emMerchantsYn" placeholder="请输入是否原租户承租" />
        </el-form-item>
        <el-form-item label="历史租户" prop="emMerchantsHistory">
          <el-input v-model="form.emMerchantsHistory" placeholder="请输入历史租户" />
        </el-form-item>
        <el-form-item label="出租时长" prop="emMerchantsYears">
          <el-input v-model="form.emMerchantsYears" placeholder="请输入出租时长" />
        </el-form-item>
        <el-form-item label="出租合同开始时间" prop="emMerchantsBegin">
          <el-date-picker clearable v-model="form.emMerchantsBegin" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择出租合同开始时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="出租合同截止时间" prop="emMerchantsEnd">
          <el-date-picker clearable v-model="form.emMerchantsEnd" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择出租合同截止时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="租金收取方式" prop="emMerchantsCollectionway">
          <el-input v-model="form.emMerchantsCollectionway" placeholder="请输入租金收取方式" />
        </el-form-item>
        <el-form-item label="租金收取途径" prop="emMerchantsPayway">
          <el-input v-model="form.emMerchantsPayway" placeholder="请输入租金收取途径" />
        </el-form-item>
        <el-form-item label="押金金额" prop="emDepossit">
          <el-input v-model="form.emDepossit" placeholder="请输入押金金额" />
        </el-form-item>
        <el-form-item label="合同管理表表修改人员" prop="emAgexcelPaper">
          <el-input v-model="form.emAgexcelPaper" placeholder="请输入合同管理表表修改人员" />
        </el-form-item>
        <el-form-item label="合同管理表补充1" prop="emAgexcelBc1">
          <el-input v-model="form.emAgexcelBc1" placeholder="请输入合同管理表补充1" />
        </el-form-item>
        <el-form-item label="合同管理表补充2" prop="emAgexcelBc2">
          <el-input v-model="form.emAgexcelBc2" placeholder="请输入合同管理表补充2" />
        </el-form-item>
        <el-form-item label="合同管理表补充3" prop="emAgexcelBc3">
          <el-input v-model="form.emAgexcelBc3" placeholder="请输入合同管理表补充3" />
        </el-form-item>
        <el-form-item label="合同管理表备注" prop="emAgexcelLabel">
          <el-input v-model="form.emAgexcelLabel" placeholder="请输入合同管理表备注" />
        </el-form-item>
        <el-form-item label="合同管理表附件地址" prop="emAgexcelFlocation">
          <el-input v-model="form.emAgexcelFlocation" placeholder="请输入合同管理表附件地址" />
        </el-form-item>
        <el-form-item label="欠租金额" prop="emOweTotal">
          <el-input v-model="form.emOweTotal" placeholder="请输入欠租金额" />
        </el-form-item>
        <el-form-item label="违约金计算方式" prop="emLiquWay">
          <el-input v-model="form.emLiquWay" placeholder="请输入违约金计算方式" />
        </el-form-item>
        <el-form-item label="本年度应收租金" prop="emRentAble">
          <el-input v-model="form.emRentAble" placeholder="请输入本年度应收租金" />
        </el-form-item>
        <el-form-item label="本年度实收租金" prop="emRentPaid">
          <el-input v-model="form.emRentPaid" placeholder="请输入本年度实收租金" />
        </el-form-item>
        <el-form-item label="逾期开始时间" prop="emLateStart">
          <el-date-picker clearable v-model="form.emLateStart" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择逾期开始时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="累计逾期天数" prop="emLateAllday">
          <el-input v-model="form.emLateAllday" placeholder="请输入累计逾期天数" />
        </el-form-item>
        <el-form-item label="累计逾期金额" prop="emLateMoney">
          <el-input v-model="form.emLateMoney" placeholder="请输入累计逾期金额" />
        </el-form-item>
        <el-form-item label="累计违约金金额" prop="emLateForpay">
          <el-input v-model="form.emLateForpay" placeholder="请输入累计违约金金额" />
        </el-form-item>
        <el-form-item label="最长欠租时间" prop="emOweLong">
          <el-input v-model="form.emOweLong" placeholder="请输入最长欠租时间" />
        </el-form-item>
        <el-form-item label="租金管理表修改人员" prop="emRenexcelPaper">
          <el-input v-model="form.emRenexcelPaper" placeholder="请输入租金管理表修改人员" />
        </el-form-item>
        <el-form-item label="租金管理表补充1" prop="emRenexcelBc1">
          <el-input v-model="form.emRenexcelBc1" placeholder="请输入租金管理表补充1" />
        </el-form-item>
        <el-form-item label="租金管理表补充2" prop="emRenexcelBc2">
          <el-input v-model="form.emRenexcelBc2" placeholder="请输入租金管理表补充2" />
        </el-form-item>
        <el-form-item label="租金管理表补充3" prop="emRenexcelBc3">
          <el-input v-model="form.emRenexcelBc3" placeholder="请输入租金管理表补充3" />
        </el-form-item>
        <el-form-item label="租金管理表备注" prop="emRenexcelLabel">
          <el-input v-model="form.emRenexcelLabel" placeholder="请输入租金管理表备注" />
        </el-form-item>
        <el-form-item label="租金管理表附件地址" prop="emRenexcelFlocation">
          <el-input v-model="form.emRenexcelFlocation" placeholder="请输入租金管理表附件地址" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listProperties, getProperties, delProperties, addProperties, updateProperties } from "@/api/system/properties";

export default {
  name: "Properties",
  dicts: [
    'iem_type',
    'iem_status',
    'iem_ownership',
    'iem_mortage',
    'iem_landnature',
    'iem_holdingway',
    'iem_fin_account',
    'iem_eval',
    'iem_merchants',
    'iem_merchants_unitw',
    'iem_merchants_yn',
    'iem_merchants_way',
    'iem_payway'
  ],
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 不动产参数表格数据
      propertiesList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        emCode: undefined,
        emName: undefined,
        emType: undefined,
        emStatus: undefined,
        emCompany: undefined,
        emLocation: undefined,
        emArea: undefined,
        emOwnershipS: undefined,
        emOwnershipName: undefined,
        emOwnershipMix: undefined,
        emMortgageY: undefined,
        emMortgageName: undefined,
        emCertificateN: undefined,
        emCertificateF: undefined,
        emCertificateT: undefined,
        emLandnature: undefined,
        emHoldingtime: undefined,
        emHoldingway: undefined,
        emTao: undefined,
        emFinAccount: undefined,
        emFinBook: undefined,
        emFinObook: undefined,
        emEval: undefined,
        emEvalPrice: undefined,
        emEvalTime: undefined,
        emEvalAgency: undefined,
        emInPaper: undefined,
        emInBc1: undefined,
        emInBc2: undefined,
        emInBc3: undefined,
        emInLabel: undefined,
        emInFlocation: undefined,
        emMonthIdle: undefined,
        emMonthIdleR: undefined,
        emMonthUse: undefined,
        emOwnWay: undefined,
        emMerchantsWay: undefined,
        emMerchantsPlm: undefined,
        emMerchantsUnitw: undefined,
        emMerchantsDj: undefined,
        emMeexcelPaper: undefined,
        emMeexcelBc1: undefined,
        emMeexcelBc2: undefined,
        emMeexcelBc3: undefined,
        emMeexcelLabel: undefined,
        emMeexcelFlocation: undefined,
        emMerchantsNumb: undefined,
        emAgreementNo: undefined,
        emAgreementPrice: undefined,
        emMerchantsUnitp: undefined,
        emMerchantsTotal: undefined,
        emMerchantsObject: undefined,
        emMerchantsReal: undefined,
        emMerchantsYn: undefined,
        emMerchantsHistory: undefined,
        emMerchantsYears: undefined,
        emMerchantsBegin: undefined,
        emMerchantsEnd: undefined,
        emMerchantsCollectionway: undefined,
        emMerchantsPayway: undefined,
        emDepossit: undefined,
        emAgexcelPaper: undefined,
        emAgexcelBc1: undefined,
        emAgexcelBc2: undefined,
        emAgexcelBc3: undefined,
        emAgexcelLabel: undefined,
        emAgexcelFlocation: undefined,
        emOweTotal: undefined,
        emLiquWay: undefined,
        emRentAble: undefined,
        emRentPaid: undefined,
        emLateStart: undefined,
        emLateAllday: undefined,
        emLateMoney: undefined,
        emLateForpay: undefined,
        emOweLong: undefined,
        emRenexcelPaper: undefined,
        emRenexcelBc1: undefined,
        emRenexcelBc2: undefined,
        emRenexcelBc3: undefined,
        emRenexcelLabel: undefined,
        emRenexcelFlocation: undefined,
        formDataType: undefined,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        emId: [
          { required: true, message: "不动产id不能为空", trigger: "blur" }
        ],
        createTime: [
          { required: true, message: "创建时间不能为空", trigger: "blur" }
        ],
        updateTime: [
          { required: true, message: "创建时间不能为空", trigger: "blur" }
        ],
        emCode: [
          { required: true, message: "不动产编码不能为空", trigger: "blur" }
        ],
        emName: [
          { required: true, message: "不动产名称不能为空", trigger: "blur" }
        ],
        emType: [
          { required: true, message: "不动产类型不能为空", trigger: "change" }
        ],
        emStatus: [
          { required: true, message: "不动产状态不能为空", trigger: "change" }
        ],
        emCompany: [
          { required: true, message: "所属子公司不能为空", trigger: "blur" }
        ],
        emLocation: [
          { required: true, message: "具体地址不能为空", trigger: "blur" }
        ],
        emArea: [
          { required: true, message: "面积不能为空", trigger: "blur" }
        ],
        emOwnershipS: [
          { required: true, message: "不动产所有权状况不能为空", trigger: "blur" }
        ],
        emOwnershipName: [
          { required: true, message: "所有权单位名称不能为空", trigger: "blur" }
        ],
        emOwnershipMix: [
          { required: true, message: "混合产权情况不能为空", trigger: "blur" }
        ],
        emMortgageY: [
          { required: true, message: "是否抵押担保不能为空", trigger: "blur" }
        ],
        emMortgageName: [
          { required: true, message: "抵押担保对象不能为空", trigger: "blur" }
        ],
        emCertificateN: [
          { required: true, message: "不动产权证号不能为空", trigger: "blur" }
        ],
        emCertificateF: [
          { required: true, message: "房产证号不能为空", trigger: "blur" }
        ],
        emCertificateT: [
          { required: true, message: "土地证号不能为空", trigger: "blur" }
        ],
        emLandnature: [
          { required: true, message: "土地性质不能为空", trigger: "blur" }
        ],
        emHoldingtime: [
          { required: true, message: "接收时间不能为空", trigger: "blur" }
        ],
        emHoldingway: [
          { required: true, message: "接收方式不能为空", trigger: "blur" }
        ],
        emTao: [
          { required: true, message: "套数不能为空", trigger: "blur" }
        ],
        emFinAccount: [
          { required: true, message: "是否入账不能为空", trigger: "blur" }
        ],
        emFinBook: [
          { required: true, message: "账面价值不能为空", trigger: "blur" }
        ],
        emFinObook: [
          { required: true, message: "原始账面价值不能为空", trigger: "blur" }
        ],
        emEval: [
          { required: true, message: "是否开展资产评估不能为空", trigger: "blur" }
        ],
        emEvalPrice: [
          { required: true, message: "现评估价格不能为空", trigger: "blur" }
        ],
        emEvalTime: [
          { required: true, message: "评估时间不能为空", trigger: "blur" }
        ],
        emEvalAgency: [
          { required: true, message: "评估机构不能为空", trigger: "blur" }
        ],
        emInPaper: [
          { required: true, message: "资产录入表修改人员不能为空", trigger: "blur" }
        ],
        emInBc1: [
          { required: true, message: "资产录入表补充1不能为空", trigger: "blur" }
        ],
        emInBc2: [
          { required: true, message: "资产录入表补充2不能为空", trigger: "blur" }
        ],
        emInBc3: [
          { required: true, message: "资产录入表补充3不能为空", trigger: "blur" }
        ],
        emInLabel: [
          { required: true, message: "资产录入表备注不能为空", trigger: "blur" }
        ],
        emInFlocation: [
          { required: true, message: "资产录入表附件地址不能为空", trigger: "blur" }
        ],
        emMonthIdle: [
          { required: true, message: "闲置时长不能为空", trigger: "blur" }
        ],
        emMonthIdleR: [
          { required: true, message: "闲置原因不能为空", trigger: "blur" }
        ],
        emMonthUse: [
          { required: true, message: "使用时长不能为空", trigger: "blur" }
        ],
        emOwnWay: [
          { required: true, message: "使用情况不能为空", trigger: "blur" }
        ],
        emMerchantsWay: [
          { required: true, message: "招租方式不能为空", trigger: "blur" }
        ],
        emMerchantsPlm: [
          { required: true, message: "招租平台不能为空", trigger: "blur" }
        ],
        emMerchantsUnitw: [
          { required: true, message: "招租单价确定不能为空", trigger: "blur" }
        ],
        emMerchantsDj: [
          { required: true, message: "招租底价不能为空", trigger: "blur" }
        ],
        emMeexcelPaper: [
          { required: true, message: "招租审批表修改人员不能为空", trigger: "blur" }
        ],
        emMeexcelBc1: [
          { required: true, message: "招租审批表补充1不能为空", trigger: "blur" }
        ],
        emMeexcelBc2: [
          { required: true, message: "招租审批表补充2不能为空", trigger: "blur" }
        ],
        emMeexcelBc3: [
          { required: true, message: "招租审批表补充3不能为空", trigger: "blur" }
        ],
        emMeexcelLabel: [
          { required: true, message: "招租审批表备注不能为空", trigger: "blur" }
        ],
        emMeexcelFlocation: [
          { required: true, message: "招租审批表附件地址不能为空", trigger: "blur" }
        ],
        emMerchantsNumb: [
          { required: true, message: "招租时竞价户数不能为空", trigger: "blur" }
        ],
        emAgreementNo: [
          { required: true, message: "合同编码不能为空", trigger: "blur" }
        ],
        emAgreementPrice: [
          { required: true, message: "合同金额不能为空", trigger: "blur" }
        ],
        emMerchantsUnitp: [
          { required: true, message: "单价不能为空", trigger: "blur" }
        ],
        emMerchantsTotal: [
          { required: true, message: "年租金不能为空", trigger: "blur" }
        ],
        emMerchantsObject: [
          { required: true, message: "中标人名称不能为空", trigger: "blur" }
        ],
        emMerchantsReal: [
          { required: true, message: "实际承租人名称不能为空", trigger: "blur" }
        ],
        emMerchantsYn: [
          { required: true, message: "是否原租户承租不能为空", trigger: "blur" }
        ],
        emMerchantsHistory: [
          { required: true, message: "历史租户不能为空", trigger: "blur" }
        ],
        emMerchantsYears: [
          { required: true, message: "出租时长不能为空", trigger: "blur" }
        ],
        emMerchantsBegin: [
          { required: true, message: "出租合同开始时间不能为空", trigger: "blur" }
        ],
        emMerchantsEnd: [
          { required: true, message: "出租合同截止时间不能为空", trigger: "blur" }
        ],
        emMerchantsCollectionway: [
          { required: true, message: "租金收取方式不能为空", trigger: "blur" }
        ],
        emMerchantsPayway: [
          { required: true, message: "租金收取途径不能为空", trigger: "blur" }
        ],
        emDepossit: [
          { required: true, message: "押金金额不能为空", trigger: "blur" }
        ],
        emAgexcelPaper: [
          { required: true, message: "合同管理表表修改人员不能为空", trigger: "blur" }
        ],
        emAgexcelBc1: [
          { required: true, message: "合同管理表补充1不能为空", trigger: "blur" }
        ],
        emAgexcelBc2: [
          { required: true, message: "合同管理表补充2不能为空", trigger: "blur" }
        ],
        emAgexcelBc3: [
          { required: true, message: "合同管理表补充3不能为空", trigger: "blur" }
        ],
        emAgexcelLabel: [
          { required: true, message: "合同管理表备注不能为空", trigger: "blur" }
        ],
        emAgexcelFlocation: [
          { required: true, message: "合同管理表附件地址不能为空", trigger: "blur" }
        ],
        emOweTotal: [
          { required: true, message: "欠租金额不能为空", trigger: "blur" }
        ],
        emLiquWay: [
          { required: true, message: "违约金计算方式不能为空", trigger: "blur" }
        ],
        emRentAble: [
          { required: true, message: "本年度应收租金不能为空", trigger: "blur" }
        ],
        emRentPaid: [
          { required: true, message: "本年度实收租金不能为空", trigger: "blur" }
        ],
        emLateStart: [
          { required: true, message: "逾期开始时间不能为空", trigger: "blur" }
        ],
        emLateAllday: [
          { required: true, message: "累计逾期天数不能为空", trigger: "blur" }
        ],
        emLateMoney: [
          { required: true, message: "累计逾期金额不能为空", trigger: "blur" }
        ],
        emLateForpay: [
          { required: true, message: "累计违约金金额不能为空", trigger: "blur" }
        ],
        emOweLong: [
          { required: true, message: "最长欠租时间不能为空", trigger: "blur" }
        ],
        emRenexcelPaper: [
          { required: true, message: "租金管理表修改人员不能为空", trigger: "blur" }
        ],
        emRenexcelBc1: [
          { required: true, message: "租金管理表补充1不能为空", trigger: "blur" }
        ],
        emRenexcelBc2: [
          { required: true, message: "租金管理表补充2不能为空", trigger: "blur" }
        ],
        emRenexcelBc3: [
          { required: true, message: "租金管理表补充3不能为空", trigger: "blur" }
        ],
        emRenexcelLabel: [
          { required: true, message: "租金管理表备注不能为空", trigger: "blur" }
        ],
        emRenexcelFlocation: [
          { required: true, message: "租金管理表附件地址不能为空", trigger: "blur" }
        ],
        formDataType: [
          { required: true, message: "表单类型 1=资产录入 2=招标审批 3=合同管理 4=租金管理不能为空", trigger: "change" }
        ],
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询不动产参数列表 */
    getList() {
      this.loading = true;
      listProperties(this.queryParams).then(response => {
        this.propertiesList = response.rows;
        this.total = Number(response.total);
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        emId: undefined,
        createTime: undefined,
        updateTime: undefined,
        emCode: undefined,
        emName: undefined,
        emType: undefined,
        emStatus: undefined,
        emCompany: undefined,
        emLocation: undefined,
        emArea: undefined,
        emOwnershipS: undefined,
        emOwnershipName: undefined,
        emOwnershipMix: undefined,
        emMortgageY: undefined,
        emMortgageName: undefined,
        emCertificateN: undefined,
        emCertificateF: undefined,
        emCertificateT: undefined,
        emLandnature: undefined,
        emHoldingtime: undefined,
        emHoldingway: undefined,
        emTao: undefined,
        emFinAccount: undefined,
        emFinBook: undefined,
        emFinObook: undefined,
        emEval: undefined,
        emEvalPrice: undefined,
        emEvalTime: undefined,
        emEvalAgency: undefined,
        emInPaper: undefined,
        emInBc1: undefined,
        emInBc2: undefined,
        emInBc3: undefined,
        emInLabel: undefined,
        emInFlocation: undefined,
        emMonthIdle: undefined,
        emMonthIdleR: undefined,
        emMonthUse: undefined,
        emOwnWay: undefined,
        emMerchantsWay: undefined,
        emMerchantsPlm: undefined,
        emMerchantsUnitw: undefined,
        emMerchantsDj: undefined,
        emMeexcelPaper: undefined,
        emMeexcelBc1: undefined,
        emMeexcelBc2: undefined,
        emMeexcelBc3: undefined,
        emMeexcelLabel: undefined,
        emMeexcelFlocation: undefined,
        emMerchantsNumb: undefined,
        emAgreementNo: undefined,
        emAgreementPrice: undefined,
        emMerchantsUnitp: undefined,
        emMerchantsTotal: undefined,
        emMerchantsObject: undefined,
        emMerchantsReal: undefined,
        emMerchantsYn: undefined,
        emMerchantsHistory: undefined,
        emMerchantsYears: undefined,
        emMerchantsBegin: undefined,
        emMerchantsEnd: undefined,
        emMerchantsCollectionway: undefined,
        emMerchantsPayway: undefined,
        emDepossit: undefined,
        emAgexcelPaper: undefined,
        emAgexcelBc1: undefined,
        emAgexcelBc2: undefined,
        emAgexcelBc3: undefined,
        emAgexcelLabel: undefined,
        emAgexcelFlocation: undefined,
        emOweTotal: undefined,
        emLiquWay: undefined,
        emRentAble: undefined,
        emRentPaid: undefined,
        emLateStart: undefined,
        emLateAllday: undefined,
        emLateMoney: undefined,
        emLateForpay: undefined,
        emOweLong: undefined,
        emRenexcelPaper: undefined,
        emRenexcelBc1: undefined,
        emRenexcelBc2: undefined,
        emRenexcelBc3: undefined,
        emRenexcelLabel: undefined,
        emRenexcelFlocation: undefined,
        formDataType: undefined,
        createBy: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.emId)
      this.single = selection.length !== 1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加不动产参数";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const emId = row.emId || this.ids
      getProperties(emId).then(response => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改不动产参数";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.emId != null) {
            updateProperties(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          } else {
            addProperties(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const emIds = row.emId || this.ids;
      this.$modal.confirm('是否确认删除不动产参数编号为"' + emIds + '"的数据项？').then(() => {
        this.loading = true;
        return delProperties(emIds);
      }).then(() => {
        this.loading = false;
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      }).finally(() => {
        this.loading = false;
      });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('system/properties/export', {
        ...this.queryParams
      }, `properties_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
